package com.wyix.domain.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Positive;
import lombok.Data;

/**
 * 学生信息DTO
 */
@Data
@Schema(description = "学生信息DTO")
public class StudentDTO {
    private Long id;

    @NotBlank(message = "学号不能为空")
    @Schema(description = "学号", example = "2023001")
    private String studentNo;

    @NotBlank(message = "姓名不能为空")
    @Schema(description = "姓名", example = "张三")
    private String name;

    @NotNull(message = "性别不能为空")
    @Schema(description = "性别：1-男，2-女", example = "1")
    private Integer gender;

    @NotNull(message = "年龄不能为空")
    @Positive(message = "年龄必须为正数")
    @Schema(description = "年龄", example = "18")
    private Integer age;

    @NotBlank(message = "班级不能为空")
    @Schema(description = "班级", example = "计算机一班")
    private String className;
}
